.myui-transfer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.myui-transfer-list {
  display: flex;
  flex-direction: column;
  width: 200px;
  height: 300px;
  border: 1px solid var(--border-color, #d9d9d9);
  border-radius: var(--border-radius, 4px);
}

.myui-transfer-list-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color, #d9d9d9);
  background-color: var(--bg-secondary, #fafafa);
}

.myui-transfer-list-header-count {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-secondary, rgba(0, 0, 0, 0.45));
}

.myui-transfer-list-header-title {
  margin-left: auto;
  font-weight: 500;
}

.myui-transfer-list-search {
  padding: 8px;
  border-bottom: 1px solid var(--border-color, #d9d9d9);
}

.myui-transfer-list-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.myui-transfer-list-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.myui-transfer-list-item:hover {
  background-color: var(--bg-hover, #f5f5f5);
}

.myui-transfer-list-item.checked {
  background-color: var(--primary-color-light, #e6f7ff);
}

.myui-transfer-list-item.disabled {
  cursor: not-allowed;
  color: var(--text-disabled, #ccc);
  background-color: transparent;
}

.myui-transfer-list-item input[type="checkbox"] {
  margin-right: 8px;
}

.myui-transfer-operations {
  display: flex;
  flex-direction: column;
  margin: 0 16px;
}

.myui-transfer-operations .myui-button {
  margin-bottom: 8px;
}

/* Dark Mode Support */
[data-theme='dark'] .myui-transfer-list {
  border-color: var(--border-color);
}
[data-theme='dark'] .myui-transfer-list-header {
  background-color: var(--bg-secondary);
  border-bottom-color: var(--border-color);
}
[data-theme='dark'] .myui-transfer-list-item:hover {
  background-color: var(--bg-hover);
}
[data-theme='dark'] .myui-transfer-list-item.checked {
  background-color: var(--primary-color-dark);
}
[data-theme='dark'] .myui-transfer-list-item.disabled {
  color: var(--text-disabled);
}
